#ifndef _SPLIT_TOOL_
#define _SPLIT_TOOL_
#include "Configuration.h"
#include "cppjieba/Jieba.hpp"
#include <vector>
#include <string>
using std::string;
using std::vector;
class SplitTool
{
public:
    //虚析构函数
    virtual ~SplitTool(){}
    //分词函数
    virtual vector<string> cutWord(const string &sentence) = 0;
};

class SplitToolCppJieba
:public SplitTool
{
public:
    SplitToolCppJieba(Configuration *conf);
    virtual ~SplitToolCppJieba(){};
    virtual vector<string> cutWord(const string &sentence);

private:
    Configuration *_conf;
    static cppjieba::Jieba *_jieBa;
};
#endif